<?php
	include_once ("../configs/config.php");     //配置参数
	include_once ("../common/mysql.class.php");   //MySQL操作类
	include_once ("../common/action.class.php");   //MySQL操作类
	
	$user_id 	= $_COOKIE['user_id'];
	
	$db = new action($mydbhost, $mydbuser, $mydbpw, $mydbname, "temp_conn", $mydbcharset, $mydbtag); //实例化数据库类
	$list = $db->get_user_info($user_id);
	if(count($list)==0){
		echo -1;
	}
	else{
		print_r(json_encode($list));
	}
?>
